package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.RentBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface RentBillRepository extends PagingAndSortingRepository<RentBill, Long>, JpaSpecificationExecutor<RentBill>, JpaRepository<RentBill,Long> {
	
	
	List<RentBill> findByIdIn(List<Long> ids);
	
	List<RentBill> findByTypeAndIdIn(Integer type, List<Long> ids);

	List<RentBill> findByHouseIdAndPaymentStatusAndAuditStatus(String houseId,Integer paymentStatus,Integer auditStatus);

}
